package com.blue.po.workflow;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serial;
import java.io.Serializable;

import lombok.Data;

/**
 * 流程定义表
 *
 * @author nanjie.chen
 * @email 15696471158@163.com
 * @date 2025-03-07
 */
@Data
@TableName("workflow_definition")
public class DefinitionPO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId
    @Schema(description = "流程定义ID")
    private String id;

    @Schema(description = "流程定义名称")
    private String definitionNm;

    @Schema(description = "启用状态(0-开启,1-关闭)")
    private String status;

    @Schema(description = "流程配置JSON")
    private String confJson;

    @Schema(description = "业务执行逻辑类")
    private String businessClass;

    @Schema(description = "备注")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者ID")
    private String creatorId;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private String createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "最近更新者ID")
    private String updaterId;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "最近更新时间")
    private String updateTime;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "数据有效标识(0-有效,1-无效)")
    private String isFlag;


}
